package com.zhtools.excel.tester;

import com.zhtools.excel.export.AbstractPageExport;

import java.util.ArrayList;
import java.util.List;

public class PageExport1 extends AbstractPageExport<Order> {
    @Override
    protected Long getTotalRows() {
        return 100000L;
    }

    @Override
    public Long getPageSize() {
        return 100L;
    }

    @Override
    public List<Order> query(Long start) {
        List<Order> orders = new ArrayList<>();
        for (int i = 0; i < 100; i++) {
            orders.add(OrderFactory.createOrder());
        }
        return orders;
    }
}
